#{extends 'fault_main.html' /}

#{set "moreStyles"}
<style type="text/css">
</style>
#{/set}


#{set 'moreScripts'}

<script src="@{'/public/javascripts/jquery.form.js'}"></script>

<script type="text/javascript">

</script>


#{/set}


<h1 id="title">故障管理</h1>
<div class="light_bar">
喵喵
</div>


<table id="station-list">
    <thead>
    <tr>
        <th class="main">站名</th>
        <th class="main" width="50px">站号</th>
        <th class="main" width="70px">型号</th>
        <th class="main">站址</th>
        <th class="main" width="190px">行政区</th>
        <th class="main" width="100px">建设时间</th>
        <th width="180px">操作</th>
    </tr>
    </thead>

    #{if stations.size()>0}
        #{list items:stations, as:'st'}
            <tr>
                <td class="main">${st.name}</td>
                <td class="main">${st.stationNo}</td>
                <td class="main">#{showConstValue constForeignKey: st.stationTypeId/}</td>
                <td class="main">${st.address}</td>
                <td class="main">${st.showDistrictInfo(memDistrictMap)}</td>
                <td class="main">${st.buildTime==null?"":st.buildTime.format("yyyy-MM-dd")}</td>
                <td class="main">
                    <a class="ui-state-default ui-corner-all opt_button" href="javascript:;"
                       onclick="showAlbumInTab('${st.id}','${st.name}')">照片</a>
                    <a class="ui-state-default ui-corner-all opt_button" href="javascript:;"
                       onclick="showModulesInTab('${st.id}','${st.name}');">模块</a>
                    <a class="ui-state-default ui-corner-all opt_button"
                       href="javascript:showEditForm('${st.id}','${st.name}');">编辑</a>
                    <a class="ui-state-default ui-corner-all opt_button"
                       href="javascript:requireActionByPost('@{Stations.delete}','${st.id}','确定删除自动站(${st.name})？');">删除</a>
                </td>
            </tr>
        #{/list}
    #{/if}
</table>